﻿<!--@Knockout-->
<div style="text-align:center; height:410px; max-width:630px; margin: 0 auto">
    <div style="height:380px" data-bind="dxDataGrid: {
    dataSource: orders,
    columns: [
        'OrderID',
        { dataField: 'OrderDate', dataType: 'date', format: 'shortDate' },
        { dataField: 'ShippedDate', dataType: 'date', format: 'shortDate' },
        'Freight', 'ShipName', 'ShipCity'
    ],
    paging: { pageSize: 8 },
    rowAlternationEnabled: checkBoxState
}"></div>
    <div data-bind="dxCheckBox: {
    text: 'Enable Row Alternation',
    value: checkBoxState
}"></div>
</div>
<!--/@Knockout-->
<!--@AngularJS-->
<div ng-controller="demoController" style="text-align:center; height:410px; max-width:630px; margin: 0 auto">
    <div style="height:380px" dx-data-grid="{
        dataSource: orders,
        columns: [
            'OrderID',
            { dataField: 'OrderDate', dataType: 'date', format: 'shortDate' },
            { dataField: 'ShippedDate', dataType: 'date', format: 'shortDate' },
            'Freight', 'ShipName', 'ShipCity'
        ],
        paging: { pageSize: 8 },
        bindingOptions: {
            rowAlternationEnabled: 'checkBoxState'
        }
    }"></div>
    <div ng-model="checkBoxState" dx-check-box="{
        text: 'Enable Row Alternation'
    }"></div>
</div>
<!--/@AngularJS-->
<!--@jQuery-->
<div style="text-align:center; height:410px; max-width:630px; margin: 0 auto">
    <div id="gridContainer" style="height:380px;"></div>
    <div id="rowAlternationCheckbox"></div>
</div>
<!--/@jQuery-->